# == Schema Information
# Schema version: 38
#
# Table name: book_covers
#
#  id           :integer(11)     not null, primary key
#  parent_id    :integer(11)
#  content_type :string(255)
#  filename     :string(255)
#  thumbnail    :string(255)
#  size         :integer(11)
#  width        :integer(11)
#  height       :integer(11)
#  book_id      :integer(11)
#  created_at   :datetime
#  updated_at   :datetime
#

class BookCover < ActiveRecord::Base
  belongs_to :book
  has_attachment :processor => :rmagick,
                 :content_type => :image,
                 :storage => :s3,
                 :max_size => 1.megabytes,
                 :thumbnails => { :small => "66x98>",
                                  :large => "100x150>" }

  validates_as_attachment

end
